<include file="Public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />

<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
  <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
           		<a href="javascript:;" class="btn btn-default" data-url="http://www.we10.cn" onclick="get_help(this)"><i class="fa fa-question-circle"></i> 帮助</a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 添加图片</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_tongyong" data-toggle="tab">添加图片</a></li>
                    </ul>
                    <!--表单数据-->
                    <form method="post" >                    
                        <!--通用信息-->
                    <div class="tab-content">                 	  
                        <div class="tab-pane active" id="tab_tongyong">
                           
                            <table class="table table-bordered">
                                <tbody>                      
                                <tr>
                                    <td>线路名:</td>
                                    <td>
                                        <input type="text" value="{$navigation.title}"  class="form-control" style="width:250px;"/>                                     
                                    </td>

                                </tr>
                             
                                         
                                <tr>
                                    <td>图标</td>
                                    <td>
                      					<div class="col-sm-3">
                      						<input type="text" class="form-control" style="width:350px;margin-left:-15px;" name="images" id="images" value="{$navigation.images}" >
                      						<!--*建议大小64px*64px   png格式-->

                      					</div>

                      					<div class="col-sm-3">

                                        	<input type="button" class="btn btn-default" onClick="GetUploadify(1,'images','ad','')"  value="上传图片"/>

                                        </div>

                                    </td>
								
								</tr>
								
                                </tbody>                                
                                </table>
                        </div>                           
                    </div>              
                    <div class="pull-right">
                        <input type="hidden" name="id" value="{$navigation.id}">
                        <button class="btn btn-primary" title="" data-toggle="tooltip" type="submit" data-original-title="保存">保存</button>
                    </div>
			    </form><!--表单数据-->
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div>
<script>
// 判断输入框是否为空
function checkName(){
	var name = $("#addEditNavForm").find("input[name='name']").val();
    if($.trim(name) == '')
	{
		$("#err_name").show();
		return false;
	}
	return true;
}

$("#miniProgram").click(function(){
    document.getElementById('appid').style.display = "";
    document.getElementById('link').style.display = "none";
    document.getElementById('link1').style.display = "";
	document.getElementById('link2').style.display = "none";
});
$("#defaut").click(function(){
    document.getElementById('appid').style.display = "none";
    document.getElementById('link').style.display = "";
    document.getElementById('link1').style.display = "none";
	document.getElementById('link2').style.display = "none";
});

$("#webview").click(function(){
    document.getElementById('appid').style.display = "none";
    document.getElementById('link').style.display = "none";
    document.getElementById('link1').style.display = "none";
	document.getElementById('link2').style.display = "";
});

</script>

</body>
</html>